#include<stdio.h>
int main(){
	int t;
	char a,b;
	int x=0;
	int y=0;
	scanf("%d",&t);
	getchar();
	for(int i=1;i<=t;i++){
	scanf("%c %c",&a,&b);
	getchar();
	x=a;
	y=b;
	if(x>y){
	printf("%c<%c\n",a,b);
	}
	if(x==y){
	printf("%c=%c\n",a,b);
	}
	if(x<y){
	printf("%c>%c\n",a,b);
	}
	}
	return 0;
}
